-- GENERATED SPELL FOR [Banshee] --


function spell0_17905(pUnit, Event) --@Anti-Magic Shell,n/a--
pUnit:FullCastSpellOnTarget(31662,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17905', 31500, 1)
end

function spell1_17905(pUnit, Event) --@Banshee Curse,n/a--
pUnit:FullCastSpellOnTarget(31651,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17905', 611, 1)
end

function spell2_17905(pUnit, Event) --@Banshee Wail,n/a--
pUnit:FullCastSpellOnTarget(38183,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17905', 1500, 1)
end

function Sorts_17905(pUnit, Event)
local choix_sorts_17905 = math.random(0, 2)
if choix_sorts_17905 == 0 then
pUnit:RegisterEvent('spell0_17905', 1, 1)
end
if choix_sorts_17905 == 1 then
pUnit:RegisterEvent('spell1_17905', 1, 1)
end
if choix_sorts_17905 == 2 then
pUnit:RegisterEvent('spell2_17905', 1, 1)
end
end

function mob17905_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17905', math.random(1500, 3000), 1)
end

function mob17905_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17905_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17905_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17905, 1, 'mob17905_Action')
RegisterUnitEvent(17905, 2, 'mob17905_Leave')
RegisterUnitEvent(17905, 3, 'mob17905_Kill')
RegisterUnitEvent(17905, 4, 'mob17905_Die')
